#ifndef __CONFIG_H__
#define __CONFIG_H__

/* 名字的最大长度 */
#define NAME_MAX_SIZE 10
/* 延时函数最小延时 */
#define TICK_SMALL 1000
/* 系统优先级数量 */
#define THREAD_MAX_PRIORITY 8

/* LOG打印等级设置 */
#define LOG_LEVEL LOG_LEVEL_ERROR

/* 开启assert功能 */
#define USE_ASSERT

/* 使用等待队列 */
#define USE_WORK_QUEUE

#ifdef USE_WORK_QUEUE
#define MAIN_STACK_SIZE 500
#define MAIN_PRIO 3
#define WORK_QUEUE_STACK_SIZE 500
#define WORK_PRIO (THREAD_MAX_PRIORITY - 1)
#endif

/**
 * PIN相关定义
 * */
#define PIN_DEVICE_NAME "pin"

#define GPIOA_ENABLE
#define GPIOB_ENABLE
#define GPIOC_ENABLE
#define GPIOD_ENABLE
#define GPIOE_ENABLE
#define GPIOF_ENABLE
#define GPIOG_ENABLE

/**
 * LED灯相关定义
 * */
#define LED_NAME "led"
#define LED_CMD_OFF    0
#define LED_CMD_ON     1
#define LED_CMD_TOOGLE 2

/**
 * 串口相关定义
 * */
#define USART1_NAME "usart1"
#define USART1_ENABLE
#define USART2_NAME "usart2"
#define USART2_ENABLE
#define USART3_NAME "usart3"
#define USART3_ENABLE

#endif /* __CONFIG_H__ */
